package homework00102;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;

public class Demo5 {

	public static void main(String[] args) {
		randomSixnum();

	}

	private static void randomSixnum() {
		Random num=new Random();
		ArrayList<Integer> arr = new ArrayList<>();
		while(arr.size()<6){
			int a = num.nextInt(33) + 1;
            if (!arr.contains(a)) {
                arr.add(a);
            }
		}
		System.out.println(arr);
		
	}

}
